┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/share/pie/vendor/justinrainbow/json-schema/bin
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: extract-release-notes.sh
#!/usr/bin/env bash set -e # Script to extract release notes for a specific version from CHANGELOG.md # Usage: ./bin/extract-release-notes.sh "6.7.0" # # Arguments: # $1 - Version number (e.g., "6.7.0") # # This script extracts all the content between the specified version header # and the next version header if [ $# -lt 1 ]; then echo "Usage: $0 <version>" echo "" echo "Example: $0 '6.7.0'" exit 1 fi VERSION="$1" if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "Error: Version must be in format X.Y.Z (e.g., 6.7.0)" exit 1 fi # Check if CHANGELOG.md exists if [ ! -f CHANGELOG.md ]; then echo "Error: CHANGELOG.md not found in current directory" exit 1 fi # Use awk to extract the release notes for the specified version awk -v version="$VERSION" ' BEGIN { in_version = 0; found = 0 } # Match the version header $0 ~ "^## \\[" version "\\]" { in_version = 1 found = 1 next } # Match any other version header /^## \[/ { if (in_version) { exit } next } # Print content when in the correct version section in_version { print } END { if (!found) { print "Error: Version " version " not found in CHANGELOG.md" > "/dev/stderr" exit 1 } } ' CHANGELOG.md
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 extract-release-notes.sh
SH
1.2 KB
2026-04-02 12:43
EDIT
📄 prepare-release.sh
SH
1.9 KB
2026-04-02 12:43
EDIT
📄 update-changelog.sh
SH
2.3 KB
2026-04-02 12:43
EDIT
📄 validate-json
?
6.2 KB
2026-04-02 12:43
EDIT